# 导入枚举类
from enum import Enum


# 继承枚举类
class color(Enum):
    YELLOW = 1
    BEOWN = 1
    # 注意BROWN的值和YELLOW的值相同，这是允许的，此时的BROWN相当于YELLOW的别名
    RED = 2
    GREEN = 3
    PINK = 4


class color2(Enum):
    YELLOW = 1
    RED = 2
    GREEN = 3
    PINK = 4


print(color.YELLOW.value)
# color.YELLOW = 2


